package io.xxx.walle.assistant;

import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "token", description = "服务商令牌管理")
@RestController
@RequestMapping("/token")
public class TokenController {

    @Resource
    private TokenService tokenService;

    /**
     * 保存二维码
     */
    @PostMapping("/save_qrcode")
    public void save(@RequestBody Token token) {
        tokenService.updateQrcode(token);
    }
}
